package com.itheima.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

/**
 * Configuration  标识 该类是一个配置类 用来替代我们的beans.xml的
 *
 * @ComponentScan("com.itheima") 替代了  <context:component-scan base-package="包的名字"></context:component-scan>
 *
 * @PropertySource 替代了 <context:property-placeholder location="外部属性文件"></context:property-placeholder>
 */
@Configuration
//@ComponentScan({"com.itheima.service","com.itheima.controller","com.itheima.dao"})
//@ComponentScan({"com.itheima"})
@ComponentScan("com.itheima")
@Import({JDBCConfig.class})
public class MyConfig {



}
